package core.semantics.util;

public class ElementDefinition {

	private String name;
	private int line, column;
	
	public ElementDefinition(String name, int line, int column) {
		this.name = name;
		this.line = line;
		this.column = column;
	}
	
	public ElementDefinition(ElementDefinition other) {
		this.name = other.getName();
		this.line = other.getLine();
		this.column = other.getColumn();
	}
	
	public String getName() {
		return name;
	}
	
	public int getLine() {
		return line;
	}
	
	public int getColumn() {
		return column;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof ElementDefinition)) {
			return false;
		}

		ElementDefinition other = (ElementDefinition) obj;

		return this.name.equals(other.name);
	}
	
}
